package com.example.databasepj.entity;

import lombok.Data;

import java.time.LocalDateTime;
@Data
public class MessageEntity {
    private int message_id;
    private int user_id;
    private int merchant_id;
    private int message_type; // 可以使用枚举代替整型
    private String message_content;
    private java.time.LocalDateTime time;

    public MessageEntity(int message_id, int user_id, int merchant_id, int message_type, String message_content, LocalDateTime time) {
        this.message_id = message_id;
        this.user_id = user_id;
        this.merchant_id = merchant_id;
        this.message_type = message_type;
        this.message_content = message_content;
        this.time = time;
    }

    public MessageEntity() {
    }

    public MessageEntity(int user_id, int merchant_id) {
        this.user_id = user_id;
        this.merchant_id = merchant_id;
    }

    public int getMessage_id() {
        return message_id;
    }

    public void setMessage_id(int message_id) {
        this.message_id = message_id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getMerchant_id() {
        return merchant_id;
    }

    public void setMerchant_id(int merchant_id) {
        this.merchant_id = merchant_id;
    }

    public int getMessage_type() {
        return message_type;
    }

    public void setMessage_type(int message_type) {
        this.message_type = message_type;
    }

    public String getMessage_content() {
        return message_content;
    }

    public void setMessage_content(String message_content) {
        this.message_content = message_content;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }
}
